#include <iostream>
#include <stdlib.h>
#include <curses.h>
#include "d666.h"
#include "characters.h"

using namespace std ;

int main()
{
 int ch ;

	initscr() ;			/* Start curses mode 		  */
	raw() ;				/* Line buffering disabled	*/
	keypad(stdscr, TRUE) ;		/* We get F1, F2 etc..		*/
	noecho() ;			/* Don't echo() while we do getch */



	attron(A_BOLD);
	printw("*********************\n") ;	/* Print Title screen		  */
	printw("***   In Nomine   ***\n") ;
	printw("*********************\n") ;
	attroff(A_BOLD);

	ch = getch() ;					/* If raw() hadn't been called
									* we have to press enter before it
									* gets to the program 		*/

	if(ch == KEY_F(1))				/* Without keypad enabled this will */
	{
		printw("F1 Key pressed") ;	/*  not get to us either	*/
									/* Without noecho() some ugly escape
									* charachters might have been printed
									* on screen			*/
	}

	else
	{

	}


	refresh();			/* Print it on to the real screen */
	getch();			/* Wait for user input */
	endwin();			/* End curses mode		  */

	return 0;
}
